﻿namespace Networks
{
    public class Routes
    {
        // gate
        public const string GATE_CONNECT = "gate.gateHandler.reqConnect";

        // connector
        public const string CONNECTOR_LOGIN = "connector.entryHandler.reqLogin";

        // lobby
        public const string LOBBY_PLAZA_LIST = "lobby.lobbyHandler.reqPlazaList";
        public const string LOBBY_CHANGE_NICKNAME = "lobby.lobbyHandler.reqChangeNickName";
        public const string LOBBY_CHAT_SEND = "lobby.lobbyHandler.sendChatMessage";

        public const string LOBBY_NOTIFY_ADD = "lobby.lobbyHandler.onAdd";
        public const string LOBBY_NOTIFY_LEAVE = "lobby.lobbyHandler.onLeave";
        public const string LOBBY_NOTIFY_CHAT = "lobby.lobbyHandler.onChat";

        // room
        public const string ROOM_CREATE = "room.roomHandler.reqCreateRoom";
        public const string ROOM_JOIN = "room.roomHandler.reqJoinRoom";
        public const string C2S_ROOM_ENTER_FINISH = "room.roomHandler.enterRoomFinish"; // 房间加载完成
        public const string ROOM_LEAVE = "room.roomHandler.reqLeaveRoom";
        public const string ROOM_LIST = "room.roomHandler.reqRoomList";
        public const string ROOM_HEART_BEAT = "room.roomHandler.heartBeat";

        public const string ROOM_NOTIFY_STATE_CHANGFE = "room.roomHandler.roomStateChange"; // 

        public const string ROOM_PLAYER_ACTION = "room.roomHandler.playerAction";
        public const string ROOM_PLAYER_TALK = "room.roomHandler.playerTalkMsg"; // 请求/通知
        public const string ROOM_PLAYER_TRUST = "room.roomHandler.reqTrust";
        public const string ROOM_NOTIFY_PLAYER_INFO = "room.roomHandler.playerInfo";
        public const string ROOM_NOTIFY_PLAYER_STATE = "room.roomHandler.playerState";
        public const string ROOM_NOTIFY_PLAYER_LEAVE = "room.roomHandler.playerLeave";


        // game
        public const string C2S_GAME_START = "room.roomHandler.reqStartGame"; // 
        public const string C2S_GAME_ENTER_SCENE_FINISH = "room.roomHandler.enterSceneFinish"; // 

        public const string S2C_GAME_LOAD = "game.notify.loadScene"; // 开始加载场景
        public const string S2C_GAME_BEGIN = "game.notify.gameBengin"; // 

        public const string GAME_NOTIFY_ENTER_FRAME = "game.notify.enterFrame";
    }
}